﻿using SqlSugar;
namespace Magic.Core;

/// <summary>
/// 附件表
///</summary>
[SugarTable("attachment")]
public class Attachment
{
    /// <summary>
    /// ID 
    ///</summary>
     [SugarColumn(ColumnName="id" ,IsPrimaryKey = true ,IsIdentity = true  )]
     public int Id { get; set; }
    /// <summary>
    /// 细目 
    /// 默认值: 
    ///</summary>
     [SugarColumn(ColumnName="topic"    )]
     public string Topic { get; set; }
    /// <summary>
    /// 上传管理员ID 
    /// 默认值: 0
    ///</summary>
     [SugarColumn(ColumnName="admin_id"    )]
     public int AdminId { get; set; }
    /// <summary>
    /// 上传用户ID 
    /// 默认值: 0
    ///</summary>
     [SugarColumn(ColumnName="user_id"    )]
     public int UserId { get; set; }
    /// <summary>
    /// 物理路径 
    /// 默认值: 
    ///</summary>
     [SugarColumn(ColumnName="url"    )]
     public string Url { get; set; }
    /// <summary>
    /// 宽度 
    /// 默认值: 0
    ///</summary>
     [SugarColumn(ColumnName="width"    )]
     public int Width { get; set; }
    /// <summary>
    /// 高度 
    /// 默认值: 0
    ///</summary>
     [SugarColumn(ColumnName="height"    )]
     public int Height { get; set; }
    /// <summary>
    /// 原始名称 
    /// 默认值: 
    ///</summary>
     [SugarColumn(ColumnName="name"    )]
     public string Name { get; set; }
    /// <summary>
    /// 大小 
    /// 默认值: 0
    ///</summary>
     [SugarColumn(ColumnName="size"    )]
     public int Size { get; set; }
    /// <summary>
    /// mime类型 
    /// 默认值: 
    ///</summary>
     [SugarColumn(ColumnName="mimetype"    )]
     public string Mimetype { get; set; }
    /// <summary>
    /// 上传(引用)次数 
    /// 默认值: 0
    ///</summary>
     [SugarColumn(ColumnName="quote"    )]
     public int Quote { get; set; }
    /// <summary>
    /// 存储方式 
    /// 默认值: 
    ///</summary>
     [SugarColumn(ColumnName="storage"    )]
     public string Storage { get; set; }
    /// <summary>
    /// sha1编码 
    /// 默认值: 
    ///</summary>
     [SugarColumn(ColumnName="sha1"    )]
     public string Sha1 { get; set; }
    /// <summary>
    /// 上传时间 
    ///</summary>
     [SugarColumn(ColumnName="createtime"    )]
     public int? Createtime { get; set; }
    /// <summary>
    /// 最后上传时间 
    ///</summary>
     [SugarColumn(ColumnName="lastuploadtime"    )]
     public int? Lastuploadtime { get; set; }
}
